package com.ccjq.spring.version.three.webmvc.service.impl;

import com.ccjq.spring.version.three.webmvc.service.UserService;
import com.ccjq.spring.version.three.webmvc.dao.UserDao;
import com.ccjq.spring.version.three.webmvc.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * describe:用户业务接口实现
 *
 * @author xugang
 * @date 2019/1/15 13:53
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public int saveUser(User user) {
        userDao.saveUser(user);
        return 1;
    }
}
